import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga'
import { reducer as countReducer } from './Test/index';
import mySaga from './Test/saga'

const sagaMiddleware = createSagaMiddleware()

let store = createStore(
    countReducer,
    applyMiddleware(sagaMiddleware)
);

sagaMiddleware.run(mySaga)

export default store;